<!--{include manage/header}-->
<body>
<div id="window"></div>
<div class="list-div">
<div style="background: none repeat scroll 0% 0% rgb(239, 239, 239); padding: 5px; text-align: right;">
<!--{if getRoleId(149,$userInfo['roleid'])}-->
    <a href="javascript:;" class="easyui-linkbutton l-btn l-btn-plain" plain="true" id="add-module"><span class="l-btn-left"><span style="padding-left: 20px;" class="l-btn-text icon-add">添加分类</span></span></a>
<!--{/if}-->
    <a href="javascript:;" class="easyui-linkbutton l-btn l-btn-plain" plain="true" onClick="window.location.reload();"><span class="l-btn-left"><span style="padding-left: 20px;" class="l-btn-text icon-reload">重载页面</span></span></a>
</div>

<div style="height: 575px;" id="scrollIframe">
<div id="col_head" style="background: none repeat scroll 0% 0% rgb(234, 234, 234); width: 100%; z-index: 100; position: relative; top: 0px;">
<table align="center" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <th style="border-right: 1px solid rgb(204, 204, 204);" width="20%">分类名称</th>
    <th style="border-right: 1px solid rgb(204, 204, 204);" width="10%">ID</th>
    <th style="border-right: 1px solid rgb(204, 204, 204);" width="6%">生成目录</th>
    <th style="border-right: 1px solid rgb(204, 204, 204);" width="10%">首页模板</th>
    <th style="border-right: 1px solid rgb(204, 204, 204);" width="10%">列表模板</th>
    <th style="border-right: 1px solid rgb(204, 204, 204);" width="5%">文章模板</th>
    <th style="border-right: 1px solid rgb(204, 204, 204);" width="5%">排序</th>
    <th style="text-align: left; padding-left: 20px;">操作</th>
  </tr>
</tbody></table>
</div>

<table align="center" cellpadding="0" cellspacing="0">
    <tbody>
	<!--{loop $module  $r}-->
	<tr>
		<td style="padding-left: {$r['depth']}em; border-right: 1px solid rgb(204, 204, 204); text-align: left;" width="20%">
		  <span class="icon icon-module_config" style="border: 0px none; margin-left: 5px;">&nbsp;</span>
		  <span>{$r['text']}</span>
		</td>
		<td style="border-right: 1px solid rgb(204, 204, 204); text-align: left;" width="10%">
		  <span><center>
		    {$r['id']}
		  </center></span>
		</td>
		<td style="border-right: 1px solid rgb(204, 204, 204); text-align: center;" width="6%">
		  {$r['typedir']}
		</td> 
		<td style="border-right: 1px solid rgb(204, 204, 204); text-align: left;" width="10%"><span><center>{$r['tempindex']}&nbsp;</center></span></td>
		<td style="border-right: 1px solid rgb(204, 204, 204); text-align: left;" width="10%"><span><center>{$r['templist']}&nbsp;</center></span></td>
		<td style="border-right: 1px solid rgb(204, 204, 204); text-align: center;" width="5%"><span><center>{$r['temparticle']}&nbsp;</center></span></td>
		<td style="border-right: 1px solid rgb(204, 204, 204);text-align: center;" class="module-order-update" id="{$r['id']}" width="5%">{$r['sortrank']}</td>
		<td style="padding-left: 10px; text-align: left;">
		<!--{if getRoleId(151,$userInfo['roleid'])}-->
			<span class="icon icon-cancel del-module" style="border: 0px none; cursor: help;" module_id="{$r['id']}" title="删除">&nbsp;</span>&nbsp;
		<!--{/if}-->
		<!--{if getRoleId(150,$userInfo['roleid'])}-->
			<span class="icon icon-edit edit-module" style="border: 0px none; cursor: help;" module_id="{$r['id']}" title="修改">&nbsp;</span>
		<!--{/if}-->
		</td>
	</tr>
	<!--{/loop}-->
 


    </tbody></table></div></div>

<script type="text/javascript">
$("#scrollIframe").css({
	height: $.browser.msie ? pageHeight()-70 : pageHeight()-75
}).scroll(function(){
	$("#col_head").css("top",$(this).scrollTop());
});
</script>
<script type="text/javascript" src="../static/js/catalog.js?${time()}"></script>
</body>
</html>